﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
namespace Common
{
    /// <summary>
    /// 类，事件日志类。
    /// 单态封装log4net
    /// </summary>
    public class Logger
    {
        private static log4net.ILog log = null;
        private static object lockHelper = new object();

        public static log4net.ILog Log
        {
            get
            {
                if (log == null)
                    lock (lockHelper)
                        if (log == null)
                            log = log4net.LogManager.GetLogger("File");
                return log;
            }
        }
    }
}